package com.briup.ch07.abstructs;
import java.lang.Math;
public class Circle extends Shape{
    private double r;
    public Circle(String name,double r)
    {
        super(name);
        this.r=r;
    }

    @Override
    public double getArea()
    {
        return Math.PI*r*r;
    }
    public double getR()
    {
        return this.r;
    }
}
